﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="SimpleFiles.aspx.cs" Inherits="UpdateApp.SimpleFiles" %>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <meta name="viewport" content="width=device-width,initial-scale=1,user-scalable=no"/>
    <title>文件列表</title>
    <link href="CSS/bootstrap-3.3.7-dist/css/bootstrap.min.css" rel="stylesheet" />
    <style>
        .font {
            margin: 8px 10px;
            width: 8rem;
            font-size: 2rem;
        }
    </style>
</head>

<body>
    <button type="button" class="btn btn-default font" onclick='window.location.href = "Simple.aspx"'>上传</button>
    <table class="table table-hover" style="margin: 10px 20px; width: 97%">
        <caption>文件列表</caption>
        <thead>
            <tr>
                <th>文件</th>
                <th>大小</th>
            </tr>
        </thead>
        <tbody>
            <tr style='display:<%=date =="" ? "" : "none" %>''>                
                <td><a href="?date=<%=alway %>">永久空间</a></td>
                <td></td>
            </tr>
            <tr style='display:<%=date =="" ? "" : "none" %>''>                
                <td><a href="?date=<%=temp %>">临时空间</a></td>
                <td></td>
            </tr>
            <% foreach (var item in list.Keys)
               { %>
            <tr>             
                <td><a href="<%=path%>/<%=item%>" target="_blank"><%=item%></a></td>
                <td><%=list[item].Split('|')[0]%></td>
            </tr>
            <% } %>
        </tbody>
    </table>
</body>
</html>
<script>
    setTimeout(function () { window.close() }, 600000); //十分钟关闭   
</script>
